package com.subang.function.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.subang.function.mapper.SbWoodenFishHitsMapper;
import com.subang.function.domain.SbWoodenFishHits;
import com.subang.function.service.ISbWoodenFishHitsService;

/**
 * 祈福Service业务层处理
 * 
 * @author subei
 * @date 2025-04-30
 */
@Service
public class SbWoodenFishHitsServiceImpl implements ISbWoodenFishHitsService 
{
    @Autowired
    private SbWoodenFishHitsMapper sbWoodenFishHitsMapper;

    /**
     * 查询祈福
     * 
     * @param recordId 祈福主键
     * @return 祈福
     */
    @Override
    public SbWoodenFishHits selectSbWoodenFishHitsByRecordId(Long recordId)
    {
        return sbWoodenFishHitsMapper.selectSbWoodenFishHitsByRecordId(recordId);
    }

    /**
     * 查询祈福列表
     * 
     * @param sbWoodenFishHits 祈福
     * @return 祈福
     */
    @Override
    public List<SbWoodenFishHits> selectSbWoodenFishHitsList(SbWoodenFishHits sbWoodenFishHits)
    {
        return sbWoodenFishHitsMapper.selectSbWoodenFishHitsList(sbWoodenFishHits);
    }

    /**
     * 新增祈福
     * 
     * @param sbWoodenFishHits 祈福
     * @return 结果
     */
    @Override
    public int insertSbWoodenFishHits(SbWoodenFishHits sbWoodenFishHits)
    {
        return sbWoodenFishHitsMapper.insertSbWoodenFishHits(sbWoodenFishHits);
    }

    /**
     * 修改祈福
     * 
     * @param sbWoodenFishHits 祈福
     * @return 结果
     */
    @Override
    public int updateSbWoodenFishHits(SbWoodenFishHits sbWoodenFishHits)
    {
        return sbWoodenFishHitsMapper.updateSbWoodenFishHits(sbWoodenFishHits);
    }

    /**
     * 批量删除祈福
     * 
     * @param recordIds 需要删除的祈福主键
     * @return 结果
     */
    @Override
    public int deleteSbWoodenFishHitsByRecordIds(Long[] recordIds)
    {
        return sbWoodenFishHitsMapper.deleteSbWoodenFishHitsByRecordIds(recordIds);
    }

    /**
     * 删除祈福信息
     * 
     * @param recordId 祈福主键
     * @return 结果
     */
    @Override
    public int deleteSbWoodenFishHitsByRecordId(Long recordId)
    {
        return sbWoodenFishHitsMapper.deleteSbWoodenFishHitsByRecordId(recordId);
    }
}
